﻿
namespace NetROS.Tiers.Windows.Forms
{
	/// <summary>
	/// This is the abstract edit form for the <see cref="Entities.Obracun"/> entity.
	/// </summary>
	/// <remarks>This class is overwritten by .netTiers at each generation.</remarks>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class ObracunEditControlBase : System.Windows.Forms.UserControl
	{
		#region Fields
		
		//private System.Windows.Forms.TableLayoutPanel uxTableLayoutPanel;
		/// <summary>
		/// The ErrorProvider for the Entity;
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxErrorProvider;
		
		/// <summary>
		/// The BindingSource for the entity.
		///</summary>
		protected System.Windows.Forms.BindingSource uxBindingSource;
						
		
		/// <summary>
		/// TextBox for the ID property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxID;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ID property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDLabel;
		
		/// <summary>
		/// DataTimePicker for the DatumOd property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxDatumOd;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DatumOd property.
		/// </summary>
		protected System.Windows.Forms.Label uxDatumOdLabel;
		
		/// <summary>
		/// DataTimePicker for the DatumDo property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxDatumDo;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DatumDo property.
		/// </summary>
		protected System.Windows.Forms.Label uxDatumDoLabel;
		
		/// <summary>
		/// ComboBox for the VrstaUplateRSM property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxVrstaUplateRSM;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the VrstaUplateRSM property.
		/// </summary>
		protected System.Windows.Forms.Label uxVrstaUplateRSMLabel;
		
		/// <summary>
		/// TextBox for the RedniBrojUGodini property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxRedniBrojUGodini;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the RedniBrojUGodini property.
		/// </summary>
		protected System.Windows.Forms.Label uxRedniBrojUGodiniLabel;
		
		/// <summary>
		/// TextBox for the MinimalniOsobniOdbitak property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxMinimalniOsobniOdbitak;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the MinimalniOsobniOdbitak property.
		/// </summary>
		protected System.Windows.Forms.Label uxMinimalniOsobniOdbitakLabel;
		
		/// <summary>
		/// TextBox for the FondSati property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxFondSati;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the FondSati property.
		/// </summary>
		protected System.Windows.Forms.Label uxFondSatiLabel;
		
		/// <summary>
		/// TextBox for the MaksimalniIznosPorezneOlaksice property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxMaksimalniIznosPorezneOlaksice;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the MaksimalniIznosPorezneOlaksice property.
		/// </summary>
		protected System.Windows.Forms.Label uxMaksimalniIznosPorezneOlaksiceLabel;
		
		/// <summary>
		/// ComboBox for the IdentifikatorIDObrasca property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIdentifikatorIDObrasca;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IdentifikatorIDObrasca property.
		/// </summary>
		protected System.Windows.Forms.Label uxIdentifikatorIDObrascaLabel;
		
		/// <summary>
		/// TextBox for the BrutoOsnovica property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxBrutoOsnovica;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the BrutoOsnovica property.
		/// </summary>
		protected System.Windows.Forms.Label uxBrutoOsnovicaLabel;
		
		/// <summary>
		/// TextBox for the DoprinosPoDanuBoravkaUInozemstvu property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxDoprinosPoDanuBoravkaUInozemstvu;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DoprinosPoDanuBoravkaUInozemstvu property.
		/// </summary>
		protected System.Windows.Forms.Label uxDoprinosPoDanuBoravkaUInozemstvuLabel;
		
		/// <summary>
		/// TextBox for the Status property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxStatus;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Status property.
		/// </summary>
		protected System.Windows.Forms.Label uxStatusLabel;
		
		/// <summary>
		/// TextBox for the DoprinosZdravstveno property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxDoprinosZdravstveno;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DoprinosZdravstveno property.
		/// </summary>
		protected System.Windows.Forms.Label uxDoprinosZdravstvenoLabel;
		
		/// <summary>
		/// TextBox for the DoprinosZaposljavanje property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxDoprinosZaposljavanje;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DoprinosZaposljavanje property.
		/// </summary>
		protected System.Windows.Forms.Label uxDoprinosZaposljavanjeLabel;
		
		/// <summary>
		/// TextBox for the DoprinosNezgoda property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxDoprinosNezgoda;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DoprinosNezgoda property.
		/// </summary>
		protected System.Windows.Forms.Label uxDoprinosNezgodaLabel;
		
		/// <summary>
		/// ComboBox for the RSMVrstaObveznika property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxRSMVrstaObveznika;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the RSMVrstaObveznika property.
		/// </summary>
		protected System.Windows.Forms.Label uxRSMVrstaObveznikaLabel;
		
		/// <summary>
		/// DataTimePicker for the DatumIsplate property.
		/// </summary>
		protected System.Windows.Forms.DateTimePicker uxDatumIsplate;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DatumIsplate property.
		/// </summary>
		protected System.Windows.Forms.Label uxDatumIsplateLabel;
		
		/// <summary>
		/// TextBox for the MIO1aPostotak property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxMIO1aPostotak;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the MIO1aPostotak property.
		/// </summary>
		protected System.Windows.Forms.Label uxMIO1aPostotakLabel;
		
		/// <summary>
		/// TextBox for the MIO1bPostotak property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxMIO1bPostotak;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the MIO1bPostotak property.
		/// </summary>
		protected System.Windows.Forms.Label uxMIO1bPostotakLabel;
		
		/// <summary>
		/// TextBox for the MIO2Postotak property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxMIO2Postotak;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the MIO2Postotak property.
		/// </summary>
		protected System.Windows.Forms.Label uxMIO2PostotakLabel;
		
		/// <summary>
		/// TextBox for the NajvisaMjOsnovica property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNajvisaMjOsnovica;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the NajvisaMjOsnovica property.
		/// </summary>
		protected System.Windows.Forms.Label uxNajvisaMjOsnovicaLabel;
		
		/// <summary>
		/// TextBox for the DoprinosZaposljavanjeSInvaliditetom property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxDoprinosZaposljavanjeSInvaliditetom;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the DoprinosZaposljavanjeSInvaliditetom property.
		/// </summary>
		protected System.Windows.Forms.Label uxDoprinosZaposljavanjeSInvaliditetomLabel;
		
		/// <summary>
		/// TextBox for the IznosZdravstvenogZaInozemstvo property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxIznosZdravstvenogZaInozemstvo;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IznosZdravstvenogZaInozemstvo property.
		/// </summary>
		protected System.Windows.Forms.Label uxIznosZdravstvenogZaInozemstvoLabel;
		#endregion
		
		#region Main entity
		private Entities.Obracun _Obracun;
		/// <summary>
		/// Gets or sets the <see cref="Entities.Obracun"/> entity to edit with this form.
		/// </summary>
		/// <value>The <see cref="Entities.Obracun"/> instance.</value>
		public Entities.Obracun Obracun
		{
			get {return this._Obracun;}
			set
			{
				this._Obracun = value;
				if (value != null) 
				{
					this.uxBindingSource.DataSource = value;
					BindControls();
				}			
				
			}
		}
		#endregion
		
		/// <summary>
		/// Binds the controls.
		/// </summary>
		private void BindControls()
		{
			this.uxID.DataBindings.Clear();
			this.uxID.DataBindings.Add("Text", this.uxBindingSource, "ID", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDatumOd.DataBindings.Clear();
			this.uxDatumOd.DataBindings.Add("Value", this.uxBindingSource, "DatumOd", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDatumDo.DataBindings.Clear();
			this.uxDatumDo.DataBindings.Add("Value", this.uxBindingSource, "DatumDo", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxVrstaUplateRSM.DataBindings.Clear();
			this.uxVrstaUplateRSM.DataBindings.Add("SelectedValue", this.uxBindingSource, "VrstaUplateRSM", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxRedniBrojUGodini.DataBindings.Clear();
			this.uxRedniBrojUGodini.DataBindings.Add("Text", this.uxBindingSource, "RedniBrojUGodini", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxMinimalniOsobniOdbitak.DataBindings.Clear();
			this.uxMinimalniOsobniOdbitak.DataBindings.Add("Text", this.uxBindingSource, "MinimalniOsobniOdbitak", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxFondSati.DataBindings.Clear();
			this.uxFondSati.DataBindings.Add("Text", this.uxBindingSource, "FondSati", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxMaksimalniIznosPorezneOlaksice.DataBindings.Clear();
			this.uxMaksimalniIznosPorezneOlaksice.DataBindings.Add("Text", this.uxBindingSource, "MaksimalniIznosPorezneOlaksice", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIdentifikatorIDObrasca.DataBindings.Clear();
			this.uxIdentifikatorIDObrasca.DataBindings.Add("SelectedValue", this.uxBindingSource, "IdentifikatorIDObrasca", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxBrutoOsnovica.DataBindings.Clear();
			this.uxBrutoOsnovica.DataBindings.Add("Text", this.uxBindingSource, "BrutoOsnovica", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDoprinosPoDanuBoravkaUInozemstvu.DataBindings.Clear();
			this.uxDoprinosPoDanuBoravkaUInozemstvu.DataBindings.Add("Text", this.uxBindingSource, "DoprinosPoDanuBoravkaUInozemstvu", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxStatus.DataBindings.Clear();
			this.uxStatus.DataBindings.Add("Text", this.uxBindingSource, "Status", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDoprinosZdravstveno.DataBindings.Clear();
			this.uxDoprinosZdravstveno.DataBindings.Add("Text", this.uxBindingSource, "DoprinosZdravstveno", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDoprinosZaposljavanje.DataBindings.Clear();
			this.uxDoprinosZaposljavanje.DataBindings.Add("Text", this.uxBindingSource, "DoprinosZaposljavanje", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDoprinosNezgoda.DataBindings.Clear();
			this.uxDoprinosNezgoda.DataBindings.Add("Text", this.uxBindingSource, "DoprinosNezgoda", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxRSMVrstaObveznika.DataBindings.Clear();
			this.uxRSMVrstaObveznika.DataBindings.Add("SelectedValue", this.uxBindingSource, "RSMVrstaObveznika", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDatumIsplate.DataBindings.Clear();
			this.uxDatumIsplate.DataBindings.Add("Value", this.uxBindingSource, "DatumIsplate", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxMIO1aPostotak.DataBindings.Clear();
			this.uxMIO1aPostotak.DataBindings.Add("Text", this.uxBindingSource, "MIO1aPostotak", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxMIO1bPostotak.DataBindings.Clear();
			this.uxMIO1bPostotak.DataBindings.Add("Text", this.uxBindingSource, "MIO1bPostotak", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxMIO2Postotak.DataBindings.Clear();
			this.uxMIO2Postotak.DataBindings.Add("Text", this.uxBindingSource, "MIO2Postotak", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNajvisaMjOsnovica.DataBindings.Clear();
			this.uxNajvisaMjOsnovica.DataBindings.Add("Text", this.uxBindingSource, "NajvisaMjOsnovica", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDoprinosZaposljavanjeSInvaliditetom.DataBindings.Clear();
			this.uxDoprinosZaposljavanjeSInvaliditetom.DataBindings.Add("Text", this.uxBindingSource, "DoprinosZaposljavanjeSInvaliditetom", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIznosZdravstvenogZaInozemstvo.DataBindings.Clear();
			this.uxIznosZdravstvenogZaInozemstvo.DataBindings.Add("Text", this.uxBindingSource, "IznosZdravstvenogZaInozemstvo", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
		}					
		
		#region Constructor
		
		/// <summary>
		/// Initializes a new instance of the <see cref="ObracunEditControlBase"/> class.
		/// </summary>
		public ObracunEditControlBase()
		{
			InitializeComponent();			
			
			this.uxBindingSource.CurrentItemChanged += new System.EventHandler(uxBindingSource_currentItemChanged);
		}		
		
		/// <summary>
		/// 
		/// </summary>
		private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e)
		{
			if (_Obracun != null) _Obracun.Validate();
		}	
				
		/// <summary>
		/// Initializes the component.
		/// </summary>
		public void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.uxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxBindingSource = new System.Windows.Forms.BindingSource(this.components);
			
			//this.uxTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
			this.uxID = new System.Windows.Forms.TextBox();
			uxIDLabel = new System.Windows.Forms.Label();
			this.uxDatumOd = new System.Windows.Forms.DateTimePicker();
			uxDatumOdLabel = new System.Windows.Forms.Label();
			this.uxDatumDo = new System.Windows.Forms.DateTimePicker();
			uxDatumDoLabel = new System.Windows.Forms.Label();
			this.uxVrstaUplateRSM = new System.Windows.Forms.ComboBox();
			uxVrstaUplateRSMLabel = new System.Windows.Forms.Label();
			this.uxRedniBrojUGodini = new System.Windows.Forms.TextBox();
			uxRedniBrojUGodiniLabel = new System.Windows.Forms.Label();
			this.uxMinimalniOsobniOdbitak = new System.Windows.Forms.TextBox();
			uxMinimalniOsobniOdbitakLabel = new System.Windows.Forms.Label();
			this.uxFondSati = new System.Windows.Forms.TextBox();
			uxFondSatiLabel = new System.Windows.Forms.Label();
			this.uxMaksimalniIznosPorezneOlaksice = new System.Windows.Forms.TextBox();
			uxMaksimalniIznosPorezneOlaksiceLabel = new System.Windows.Forms.Label();
			this.uxIdentifikatorIDObrasca = new System.Windows.Forms.ComboBox();
			uxIdentifikatorIDObrascaLabel = new System.Windows.Forms.Label();
			this.uxBrutoOsnovica = new System.Windows.Forms.TextBox();
			uxBrutoOsnovicaLabel = new System.Windows.Forms.Label();
			this.uxDoprinosPoDanuBoravkaUInozemstvu = new System.Windows.Forms.TextBox();
			uxDoprinosPoDanuBoravkaUInozemstvuLabel = new System.Windows.Forms.Label();
			this.uxStatus = new System.Windows.Forms.TextBox();
			uxStatusLabel = new System.Windows.Forms.Label();
			this.uxDoprinosZdravstveno = new System.Windows.Forms.TextBox();
			uxDoprinosZdravstvenoLabel = new System.Windows.Forms.Label();
			this.uxDoprinosZaposljavanje = new System.Windows.Forms.TextBox();
			uxDoprinosZaposljavanjeLabel = new System.Windows.Forms.Label();
			this.uxDoprinosNezgoda = new System.Windows.Forms.TextBox();
			uxDoprinosNezgodaLabel = new System.Windows.Forms.Label();
			this.uxRSMVrstaObveznika = new System.Windows.Forms.ComboBox();
			uxRSMVrstaObveznikaLabel = new System.Windows.Forms.Label();
			this.uxDatumIsplate = new System.Windows.Forms.DateTimePicker();
			uxDatumIsplateLabel = new System.Windows.Forms.Label();
			this.uxMIO1aPostotak = new System.Windows.Forms.TextBox();
			uxMIO1aPostotakLabel = new System.Windows.Forms.Label();
			this.uxMIO1bPostotak = new System.Windows.Forms.TextBox();
			uxMIO1bPostotakLabel = new System.Windows.Forms.Label();
			this.uxMIO2Postotak = new System.Windows.Forms.TextBox();
			uxMIO2PostotakLabel = new System.Windows.Forms.Label();
			this.uxNajvisaMjOsnovica = new System.Windows.Forms.TextBox();
			uxNajvisaMjOsnovicaLabel = new System.Windows.Forms.Label();
			this.uxDoprinosZaposljavanjeSInvaliditetom = new System.Windows.Forms.TextBox();
			uxDoprinosZaposljavanjeSInvaliditetomLabel = new System.Windows.Forms.Label();
			this.uxIznosZdravstvenogZaInozemstvo = new System.Windows.Forms.TextBox();
			uxIznosZdravstvenogZaInozemstvoLabel = new System.Windows.Forms.Label();
			
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).BeginInit();
			this.SuspendLayout();
			
			// 
			// uxTableLayoutPanel
			// 
			//this.uxTableLayoutPanel.AutoSize = true;
			//this.uxTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			//this.uxTableLayoutPanel.ColumnCount = 2;
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
			//this.uxTableLayoutPanel.Location = new System.Drawing.System.Drawing.Point(3, 3);
			//this.uxTableLayoutPanel.Name = "uxTableLayoutPanel";
			//this.uxTableLayoutPanel.RowCount = 2;
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.Size = new System.Drawing.Size(450, 50);
			//this.uxTableLayoutPanel.TabIndex = 0;
			
			//
			// uxErrorProvider
			//
			this.uxErrorProvider.ContainerControl = this;
			this.uxErrorProvider.DataSource = this.uxBindingSource;
			
			//
			// uxIDLabel
			//
			this.uxIDLabel.Text = "ID:";
			this.uxIDLabel.Location = new System.Drawing.Point(3, 0);
			this.Controls.Add(this.uxIDLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDLabel);			
			//
			// uxID
			//
			this.uxID.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxID);
			this.uxID.Location = new System.Drawing.Point(160, 0);
			this.Controls.Add(this.uxID);
			//
			// uxDatumOdLabel
			//
			this.uxDatumOdLabel.Text = "DatumOd:";
			this.uxDatumOdLabel.Location = new System.Drawing.Point(3, 26);
			this.Controls.Add(this.uxDatumOdLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumOdLabel);			
			//
			// uxDatumOd
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumOd);
			this.uxDatumOd.Location = new System.Drawing.Point(160, 26);
			this.Controls.Add(this.uxDatumOd);
			//
			// uxDatumDoLabel
			//
			this.uxDatumDoLabel.Text = "DatumDo:";
			this.uxDatumDoLabel.Location = new System.Drawing.Point(3, 52);
			this.Controls.Add(this.uxDatumDoLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumDoLabel);			
			//
			// uxDatumDo
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumDo);
			this.uxDatumDo.Location = new System.Drawing.Point(160, 52);
			this.Controls.Add(this.uxDatumDo);
			//
			// uxVrstaUplateRSMLabel
			//
			this.uxVrstaUplateRSMLabel.Text = "VrstaUplateRSM:";
			this.uxVrstaUplateRSMLabel.Location = new System.Drawing.Point(3, 78);
			this.Controls.Add(this.uxVrstaUplateRSMLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxVrstaUplateRSMLabel);			
			//
			// uxVrstaUplateRSM
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxVrstaUplateRSM);
			this.uxVrstaUplateRSM.Location = new System.Drawing.Point(160, 78);
			this.Controls.Add(this.uxVrstaUplateRSM);
			//
			// uxRedniBrojUGodiniLabel
			//
			this.uxRedniBrojUGodiniLabel.Text = "RedniBrojUGodini:";
			this.uxRedniBrojUGodiniLabel.Location = new System.Drawing.Point(3, 104);
			this.Controls.Add(this.uxRedniBrojUGodiniLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxRedniBrojUGodiniLabel);			
			//
			// uxRedniBrojUGodini
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxRedniBrojUGodini);
			this.uxRedniBrojUGodini.Location = new System.Drawing.Point(160, 104);
			this.Controls.Add(this.uxRedniBrojUGodini);
			//
			// uxMinimalniOsobniOdbitakLabel
			//
			this.uxMinimalniOsobniOdbitakLabel.Text = "MinimalniOsobniOdbitak:";
			this.uxMinimalniOsobniOdbitakLabel.Location = new System.Drawing.Point(3, 130);
			this.Controls.Add(this.uxMinimalniOsobniOdbitakLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxMinimalniOsobniOdbitakLabel);			
			//
			// uxMinimalniOsobniOdbitak
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxMinimalniOsobniOdbitak);
			this.uxMinimalniOsobniOdbitak.Location = new System.Drawing.Point(160, 130);
			this.Controls.Add(this.uxMinimalniOsobniOdbitak);
			//
			// uxFondSatiLabel
			//
			this.uxFondSatiLabel.Text = "FondSati:";
			this.uxFondSatiLabel.Location = new System.Drawing.Point(3, 156);
			this.Controls.Add(this.uxFondSatiLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxFondSatiLabel);			
			//
			// uxFondSati
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxFondSati);
			this.uxFondSati.Location = new System.Drawing.Point(160, 156);
			this.Controls.Add(this.uxFondSati);
			//
			// uxMaksimalniIznosPorezneOlaksiceLabel
			//
			this.uxMaksimalniIznosPorezneOlaksiceLabel.Text = "MaksimalniIznosPorezneOlaksice:";
			this.uxMaksimalniIznosPorezneOlaksiceLabel.Location = new System.Drawing.Point(3, 182);
			this.Controls.Add(this.uxMaksimalniIznosPorezneOlaksiceLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxMaksimalniIznosPorezneOlaksiceLabel);			
			//
			// uxMaksimalniIznosPorezneOlaksice
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxMaksimalniIznosPorezneOlaksice);
			this.uxMaksimalniIznosPorezneOlaksice.Location = new System.Drawing.Point(160, 182);
			this.Controls.Add(this.uxMaksimalniIznosPorezneOlaksice);
			//
			// uxIdentifikatorIDObrascaLabel
			//
			this.uxIdentifikatorIDObrascaLabel.Text = "IdentifikatorIDObrasca:";
			this.uxIdentifikatorIDObrascaLabel.Location = new System.Drawing.Point(3, 208);
			this.Controls.Add(this.uxIdentifikatorIDObrascaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIdentifikatorIDObrascaLabel);			
			//
			// uxIdentifikatorIDObrasca
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIdentifikatorIDObrasca);
			this.uxIdentifikatorIDObrasca.Location = new System.Drawing.Point(160, 208);
			this.Controls.Add(this.uxIdentifikatorIDObrasca);
			//
			// uxBrutoOsnovicaLabel
			//
			this.uxBrutoOsnovicaLabel.Text = "BrutoOsnovica:";
			this.uxBrutoOsnovicaLabel.Location = new System.Drawing.Point(3, 234);
			this.Controls.Add(this.uxBrutoOsnovicaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxBrutoOsnovicaLabel);			
			//
			// uxBrutoOsnovica
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxBrutoOsnovica);
			this.uxBrutoOsnovica.Location = new System.Drawing.Point(160, 234);
			this.Controls.Add(this.uxBrutoOsnovica);
			//
			// uxDoprinosPoDanuBoravkaUInozemstvuLabel
			//
			this.uxDoprinosPoDanuBoravkaUInozemstvuLabel.Text = "DoprinosPoDanuBoravkaUInozemstvu:";
			this.uxDoprinosPoDanuBoravkaUInozemstvuLabel.Location = new System.Drawing.Point(3, 260);
			this.Controls.Add(this.uxDoprinosPoDanuBoravkaUInozemstvuLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDoprinosPoDanuBoravkaUInozemstvuLabel);			
			//
			// uxDoprinosPoDanuBoravkaUInozemstvu
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDoprinosPoDanuBoravkaUInozemstvu);
			this.uxDoprinosPoDanuBoravkaUInozemstvu.Location = new System.Drawing.Point(160, 260);
			this.Controls.Add(this.uxDoprinosPoDanuBoravkaUInozemstvu);
			//
			// uxStatusLabel
			//
			this.uxStatusLabel.Text = "Status:";
			this.uxStatusLabel.Location = new System.Drawing.Point(3, 286);
			this.Controls.Add(this.uxStatusLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxStatusLabel);			
			//
			// uxStatus
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxStatus);
			this.uxStatus.Location = new System.Drawing.Point(160, 286);
			this.Controls.Add(this.uxStatus);
			//
			// uxDoprinosZdravstvenoLabel
			//
			this.uxDoprinosZdravstvenoLabel.Text = "DoprinosZdravstveno:";
			this.uxDoprinosZdravstvenoLabel.Location = new System.Drawing.Point(3, 312);
			this.Controls.Add(this.uxDoprinosZdravstvenoLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDoprinosZdravstvenoLabel);			
			//
			// uxDoprinosZdravstveno
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDoprinosZdravstveno);
			this.uxDoprinosZdravstveno.Location = new System.Drawing.Point(160, 312);
			this.Controls.Add(this.uxDoprinosZdravstveno);
			//
			// uxDoprinosZaposljavanjeLabel
			//
			this.uxDoprinosZaposljavanjeLabel.Text = "DoprinosZaposljavanje:";
			this.uxDoprinosZaposljavanjeLabel.Location = new System.Drawing.Point(3, 338);
			this.Controls.Add(this.uxDoprinosZaposljavanjeLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDoprinosZaposljavanjeLabel);			
			//
			// uxDoprinosZaposljavanje
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDoprinosZaposljavanje);
			this.uxDoprinosZaposljavanje.Location = new System.Drawing.Point(160, 338);
			this.Controls.Add(this.uxDoprinosZaposljavanje);
			//
			// uxDoprinosNezgodaLabel
			//
			this.uxDoprinosNezgodaLabel.Text = "DoprinosNezgoda:";
			this.uxDoprinosNezgodaLabel.Location = new System.Drawing.Point(3, 364);
			this.Controls.Add(this.uxDoprinosNezgodaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDoprinosNezgodaLabel);			
			//
			// uxDoprinosNezgoda
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDoprinosNezgoda);
			this.uxDoprinosNezgoda.Location = new System.Drawing.Point(160, 364);
			this.Controls.Add(this.uxDoprinosNezgoda);
			//
			// uxRSMVrstaObveznikaLabel
			//
			this.uxRSMVrstaObveznikaLabel.Text = "RSMVrstaObveznika:";
			this.uxRSMVrstaObveznikaLabel.Location = new System.Drawing.Point(3, 390);
			this.Controls.Add(this.uxRSMVrstaObveznikaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxRSMVrstaObveznikaLabel);			
			//
			// uxRSMVrstaObveznika
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxRSMVrstaObveznika);
			this.uxRSMVrstaObveznika.Location = new System.Drawing.Point(160, 390);
			this.Controls.Add(this.uxRSMVrstaObveznika);
			//
			// uxDatumIsplateLabel
			//
			this.uxDatumIsplateLabel.Text = "DatumIsplate:";
			this.uxDatumIsplateLabel.Location = new System.Drawing.Point(3, 416);
			this.Controls.Add(this.uxDatumIsplateLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumIsplateLabel);			
			//
			// uxDatumIsplate
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDatumIsplate);
			this.uxDatumIsplate.Location = new System.Drawing.Point(160, 416);
			this.Controls.Add(this.uxDatumIsplate);
			//
			// uxMIO1aPostotakLabel
			//
			this.uxMIO1aPostotakLabel.Text = "MIO1aPostotak:";
			this.uxMIO1aPostotakLabel.Location = new System.Drawing.Point(3, 442);
			this.Controls.Add(this.uxMIO1aPostotakLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxMIO1aPostotakLabel);			
			//
			// uxMIO1aPostotak
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxMIO1aPostotak);
			this.uxMIO1aPostotak.Location = new System.Drawing.Point(160, 442);
			this.Controls.Add(this.uxMIO1aPostotak);
			//
			// uxMIO1bPostotakLabel
			//
			this.uxMIO1bPostotakLabel.Text = "MIO1bPostotak:";
			this.uxMIO1bPostotakLabel.Location = new System.Drawing.Point(3, 468);
			this.Controls.Add(this.uxMIO1bPostotakLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxMIO1bPostotakLabel);			
			//
			// uxMIO1bPostotak
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxMIO1bPostotak);
			this.uxMIO1bPostotak.Location = new System.Drawing.Point(160, 468);
			this.Controls.Add(this.uxMIO1bPostotak);
			//
			// uxMIO2PostotakLabel
			//
			this.uxMIO2PostotakLabel.Text = "MIO2Postotak:";
			this.uxMIO2PostotakLabel.Location = new System.Drawing.Point(3, 494);
			this.Controls.Add(this.uxMIO2PostotakLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxMIO2PostotakLabel);			
			//
			// uxMIO2Postotak
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxMIO2Postotak);
			this.uxMIO2Postotak.Location = new System.Drawing.Point(160, 494);
			this.Controls.Add(this.uxMIO2Postotak);
			//
			// uxNajvisaMjOsnovicaLabel
			//
			this.uxNajvisaMjOsnovicaLabel.Text = "NajvisaMjOsnovica:";
			this.uxNajvisaMjOsnovicaLabel.Location = new System.Drawing.Point(3, 520);
			this.Controls.Add(this.uxNajvisaMjOsnovicaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNajvisaMjOsnovicaLabel);			
			//
			// uxNajvisaMjOsnovica
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxNajvisaMjOsnovica);
			this.uxNajvisaMjOsnovica.Location = new System.Drawing.Point(160, 520);
			this.Controls.Add(this.uxNajvisaMjOsnovica);
			//
			// uxDoprinosZaposljavanjeSInvaliditetomLabel
			//
			this.uxDoprinosZaposljavanjeSInvaliditetomLabel.Text = "DoprinosZaposljavanjeSInvaliditetom:";
			this.uxDoprinosZaposljavanjeSInvaliditetomLabel.Location = new System.Drawing.Point(3, 546);
			this.Controls.Add(this.uxDoprinosZaposljavanjeSInvaliditetomLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDoprinosZaposljavanjeSInvaliditetomLabel);			
			//
			// uxDoprinosZaposljavanjeSInvaliditetom
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxDoprinosZaposljavanjeSInvaliditetom);
			this.uxDoprinosZaposljavanjeSInvaliditetom.Location = new System.Drawing.Point(160, 546);
			this.Controls.Add(this.uxDoprinosZaposljavanjeSInvaliditetom);
			//
			// uxIznosZdravstvenogZaInozemstvoLabel
			//
			this.uxIznosZdravstvenogZaInozemstvoLabel.Text = "IznosZdravstvenogZaInozemstvo:";
			this.uxIznosZdravstvenogZaInozemstvoLabel.Location = new System.Drawing.Point(3, 572);
			this.Controls.Add(this.uxIznosZdravstvenogZaInozemstvoLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIznosZdravstvenogZaInozemstvoLabel);			
			//
			// uxIznosZdravstvenogZaInozemstvo
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIznosZdravstvenogZaInozemstvo);
			this.uxIznosZdravstvenogZaInozemstvo.Location = new System.Drawing.Point(160, 572);
			this.Controls.Add(this.uxIznosZdravstvenogZaInozemstvo);
			//
			// uxIdentifikatorIDObrasca
			//				
			this.uxIdentifikatorIDObrasca.DisplayMember = "IDSifarnikTip";	
			this.uxIdentifikatorIDObrasca.ValueMember = "ID";	
			//
			// uxVrstaUplateRSM
			//				
			this.uxVrstaUplateRSM.DisplayMember = "IDSifarnikTip";	
			this.uxVrstaUplateRSM.ValueMember = "ID";	
			//
			// uxRSMVrstaObveznika
			//				
			this.uxRSMVrstaObveznika.DisplayMember = "IDSifarnikTip";	
			this.uxRSMVrstaObveznika.ValueMember = "ID";	
			// 
			// ObracunEditControlBase
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			//this.Controls.Add(this.uxTableLayoutPanel);
			this.AutoScroll = true;
			this.Name = "ObracunEditControlBase";
			this.Size = new System.Drawing.Size(478, 311);
			//this.Localizable = true;
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).EndInit();			
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		#endregion
				
		#region ComboBox List
		
				
		private Entities.TList<Entities.Sifarnik> _IdentifikatorIDObrascaList;
		
		/// <summary>
		/// The ComboBox associated with the IdentifikatorIDObrasca property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Sifarnik> IdentifikatorIDObrascaList
		{
			get {return _IdentifikatorIDObrascaList;}
			set 
			{
				this._IdentifikatorIDObrascaList = value;
				this.uxIdentifikatorIDObrasca.DataSource = null;
				this.uxIdentifikatorIDObrasca.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIdentifikatorIDObrascaList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IdentifikatorIDObrasca property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIdentifikatorIDObrascaList
		{
			get { return _allowNewItemInIdentifikatorIDObrascaList;}
			set
			{
				this._allowNewItemInIdentifikatorIDObrascaList = value;
				this.uxIdentifikatorIDObrasca.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.Sifarnik> _VrstaUplateRSMList;
		
		/// <summary>
		/// The ComboBox associated with the VrstaUplateRSM property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Sifarnik> VrstaUplateRSMList
		{
			get {return _VrstaUplateRSMList;}
			set 
			{
				this._VrstaUplateRSMList = value;
				this.uxVrstaUplateRSM.DataSource = null;
				this.uxVrstaUplateRSM.DataSource = value;
			}
		}
		
		private bool _allowNewItemInVrstaUplateRSMList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the VrstaUplateRSM property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInVrstaUplateRSMList
		{
			get { return _allowNewItemInVrstaUplateRSMList;}
			set
			{
				this._allowNewItemInVrstaUplateRSMList = value;
				this.uxVrstaUplateRSM.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.Sifarnik> _RSMVrstaObveznikaList;
		
		/// <summary>
		/// The ComboBox associated with the RSMVrstaObveznika property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Sifarnik> RSMVrstaObveznikaList
		{
			get {return _RSMVrstaObveznikaList;}
			set 
			{
				this._RSMVrstaObveznikaList = value;
				this.uxRSMVrstaObveznika.DataSource = null;
				this.uxRSMVrstaObveznika.DataSource = value;
			}
		}
		
		private bool _allowNewItemInRSMVrstaObveznikaList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the RSMVrstaObveznika property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInRSMVrstaObveznikaList
		{
			get { return _allowNewItemInRSMVrstaObveznikaList;}
			set
			{
				this._allowNewItemInRSMVrstaObveznikaList = value;
				this.uxRSMVrstaObveznika.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	}
}
